<template>
	<view>
		<!--顶部区域-->
		<view class="smart-page-head">
			<view class="smart-page-head-title">swiper 滑块视图</view>
		</view>
		<view class="smart-padding-wrap">
			<swiper circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
				<swiper-item>
					<view class="swiper-item smart-bg-blue">A</view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item smart-bg-green">B</view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item smart-bg-red">C</view>
				</swiper-item>
			</swiper>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				indicatorDots: true, // 指示点
				autoplay: true, // 自动播放
				interval: 5000, // 停留时长
				duration: 500 // 切换间隔时长
			}
		},
		methods: {}
	}
</script>

<style>
	.swiper-item {
		display: flex;
		justify-content: center;
		align-items: center;
		height: 300rpx;
		font-size: 36rpx;
		color: white;
		font-weight: bold;
	}
	
	.smart-bg-blue {
		background-color: #007aff;
	}
	
	.smart-bg-green {
		background-color: #09BB07;
	}
	
	.smart-bg-red {
		background-color: #F76260;
	}
</style>